//
//  SecenicoNavCell.m
//  Traveling
//
//  Created by 尹桥印 on 15/6/20.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "SecenicoNavCell.h"

@interface SecenicoNavCell()
@property (weak, nonatomic) IBOutlet UIImageView *title_img;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *desLabel;
@end

@implementation SecenicoNavCell

+(instancetype)initWithTableView:(UITableView *)tableView{
    static NSString *identifier = @"SecenicoNavCell";
    SecenicoNavCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"SecenicoNavCell" owner:nil options:nil] lastObject];
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    return cell;
}

-(void)setScenicoItemInfo:(ScenicoItemInfo *)itemInfo{
    [self.title_img sd_setImageWithURL:[NSURL URLWithString:itemInfo.title_img]];
    self.nameLabel.text = itemInfo.name;
    self.desLabel.text = itemInfo.des;
}

@end
